#!/bin/sh
# This script is invoked when installing manual entries.  It generates
# additional links to manual entries, corresponding to the procedure
# and command names described by the manual entry.  For example, the
# Tcl manual entry Hash.3 describes procedures Tcl_InitHashTable,
# Tcl_CreateHashEntry, and many more.  This script will make hard
# links so that Tcl_InitHashTable.3, Tcl_CreateHashEntry.3, and so
# on all refer to Hash.3 in the installed directory.
#
# Because of the length of command and procedure names, this mechanism
# only works on machines that support file names longer than 14 characters.
# This script checks to see if long file names are supported, and it
# doesn't make any links if they are not.
#
# The script takes one argument, which is the name of the directory
# where the manual entries have been installed.

if test $# != 1; then
    echo "Usage: mkLinks dir"
    exit 1
fi

cd $1
echo foo > xyzzyTestingAVeryLongFileName.foo
x=`echo xyzzyTe*`
rm xyzzyTe*
if test "$x" != "xyzzyTestingAVeryLongFileName.foo"; then
    exit
fi

if test -r Access.3; then
    rm -f Tcl_Access.3
    rm -f Tcl_Stat.3
    cp Access.3 Tcl_Access.3
    cp Access.3 Tcl_Stat.3
fi
if test -r AddErrInfo.3; then
    rm -f Tcl_AddObjErrorInfo.3
    rm -f Tcl_AddErrorInfo.3
    rm -f Tcl_SetObjErrorCode.3
    rm -f Tcl_SetErrorCode.3
    rm -f Tcl_SetErrorCodeVA.3
    rm -f Tcl_PosixError.3
    rm -f Tcl_LogCommandInfo.3
    cp AddErrInfo.3 Tcl_AddObjErrorInfo.3
    cp AddErrInfo.3 Tcl_AddErrorInfo.3
    cp AddErrInfo.3 Tcl_SetObjErrorCode.3
    cp AddErrInfo.3 Tcl_SetErrorCode.3
    cp AddErrInfo.3 Tcl_SetErrorCodeVA.3
    cp AddErrInfo.3 Tcl_PosixError.3
    cp AddErrInfo.3 Tcl_LogCommandInfo.3
fi
if test -r Alloc.3; then
    rm -f Tcl_Alloc.3
    rm -f Tcl_Free.3
    rm -f Tcl_Realloc.3
    cp Alloc.3 Tcl_Alloc.3
    cp Alloc.3 Tcl_Free.3
    cp Alloc.3 Tcl_Realloc.3
fi
if test -r AllowExc.3; then
    rm -f Tcl_AllowExceptions.3
    cp AllowExc.3 Tcl_AllowExceptions.3
fi
if test -r AppInit.3; then
    rm -f Tcl_AppInit.3
    cp AppInit.3 Tcl_AppInit.3
fi
if test -r AssocData.3; then
    rm -f Tcl_GetAssocData.3
    rm -f Tcl_SetAssocData.3
    rm -f Tcl_DeleteAssocData.3
    cp AssocData.3 Tcl_GetAssocData.3
    cp AssocData.3 Tcl_SetAssocData.3
    cp AssocData.3 Tcl_DeleteAssocData.3
fi
if test -r Async.3; then
    rm -f Tcl_AsyncCreate.3
    rm -f Tcl_AsyncMark.3
    rm -f Tcl_AsyncInvoke.3
    rm -f Tcl_AsyncDelete.3
    rm -f Tcl_AsyncReady.3
    cp Async.3 Tcl_AsyncCreate.3
    cp Async.3 Tcl_AsyncMark.3
    cp Async.3 Tcl_AsyncInvoke.3
    cp Async.3 Tcl_AsyncDelete.3
    cp Async.3 Tcl_AsyncReady.3
fi
if test -r BackgdErr.3; then
    rm -f Tcl_BackgroundError.3
    cp BackgdErr.3 Tcl_BackgroundError.3
fi
if test -r Backslash.3; then
    rm -f Tcl_Backslash.3
    cp Backslash.3 Tcl_Backslash.3
fi
if test -r BoolObj.3; then
    rm -f Tcl_NewBooleanObj.3
    rm -f Tcl_SetBooleanObj.3
    rm -f Tcl_GetBooleanFromObj.3
    cp BoolObj.3 Tcl_NewBooleanObj.3
    cp BoolObj.3 Tcl_SetBooleanObj.3
    cp BoolObj.3 Tcl_GetBooleanFromObj.3
fi
if test -r ByteArrObj.3; then
    rm -f Tcl_NewByteArrayObj.3
    rm -f Tcl_SetByteArrayObj.3
    rm -f Tcl_GetByteArrayFromObj.3
    rm -f Tcl_SetByteArrayLength.3
    cp ByteArrObj.3 Tcl_NewByteArrayObj.3
    cp ByteArrObj.3 Tcl_SetByteArrayObj.3
    cp ByteArrObj.3 Tcl_GetByteArrayFromObj.3
    cp ByteArrObj.3 Tcl_SetByteArrayLength.3
fi
if test -r CallDel.3; then
    rm -f Tcl_CallWhenDeleted.3
    rm -f Tcl_DontCallWhenDeleted.3
    cp CallDel.3 Tcl_CallWhenDeleted.3
    cp CallDel.3 Tcl_DontCallWhenDeleted.3
fi
if test -r ChnlStack.3; then
    rm -f Tcl_StackChannel.3
    rm -f Tcl_UnstackChannel.3
    rm -f Tcl_GetStackedChannel.3
    cp ChnlStack.3 Tcl_StackChannel.3
    cp ChnlStack.3 Tcl_UnstackChannel.3
    cp ChnlStack.3 Tcl_GetStackedChannel.3
fi
if test -r CmdCmplt.3; then
    rm -f Tcl_CommandComplete.3
    cp CmdCmplt.3 Tcl_CommandComplete.3
fi
if test -r Concat.3; then
    rm -f Tcl_Concat.3
    cp Concat.3 Tcl_Concat.3
fi
if test -r CrtChannel.3; then
    rm -f Tcl_CreateChannel.3
    rm -f Tcl_GetChannelInstanceData.3
    rm -f Tcl_GetChannelType.3
    rm -f Tcl_GetChannelName.3
    rm -f Tcl_GetChannelHandle.3
    rm -f Tcl_GetChannelMode.3
    rm -f Tcl_GetChannelBufferSize.3
    rm -f Tcl_SetChannelBufferSize.3
    rm -f Tcl_NotifyChannel.3
    rm -f Tcl_BadChannelOption.3
    rm -f Tcl_ChannelName.3
    rm -f Tcl_ChannelVersion.3
    rm -f Tcl_ChannelBlockModeProc.3
    rm -f Tcl_ChannelCloseProc.3
    rm -f Tcl_ChannelClose2Proc.3
    rm -f Tcl_ChannelInputProc.3
    rm -f Tcl_ChannelOutputProc.3
    rm -f Tcl_ChannelSeekProc.3
    rm -f Tcl_ChannelSetOptionProc.3
    rm -f Tcl_ChannelGetOptionProc.3
    rm -f Tcl_ChannelWatchProc.3
    rm -f Tcl_ChannelGetHandleProc.3
    rm -f Tcl_ChannelFlushProc.3
    rm -f Tcl_ChannelHandlerProc.3
    cp CrtChannel.3 Tcl_CreateChannel.3
    cp CrtChannel.3 Tcl_GetChannelInstanceData.3
    cp CrtChannel.3 Tcl_GetChannelType.3
    cp CrtChannel.3 Tcl_GetChannelName.3
    cp CrtChannel.3 Tcl_GetChannelHandle.3
    cp CrtChannel.3 Tcl_GetChannelMode.3
    cp CrtChannel.3 Tcl_GetChannelBufferSize.3
    cp CrtChannel.3 Tcl_SetChannelBufferSize.3
    cp CrtChannel.3 Tcl_NotifyChannel.3
    cp CrtChannel.3 Tcl_BadChannelOption.3
    cp CrtChannel.3 Tcl_ChannelName.3
    cp CrtChannel.3 Tcl_ChannelVersion.3
    cp CrtChannel.3 Tcl_ChannelBlockModeProc.3
    cp CrtChannel.3 Tcl_ChannelCloseProc.3
    cp CrtChannel.3 Tcl_ChannelClose2Proc.3
    cp CrtChannel.3 Tcl_ChannelInputProc.3
    cp CrtChannel.3 Tcl_ChannelOutputProc.3
    cp CrtChannel.3 Tcl_ChannelSeekProc.3
    cp CrtChannel.3 Tcl_ChannelSetOptionProc.3
    cp CrtChannel.3 Tcl_ChannelGetOptionProc.3
    cp CrtChannel.3 Tcl_ChannelWatchProc.3
    cp CrtChannel.3 Tcl_ChannelGetHandleProc.3
    cp CrtChannel.3 Tcl_ChannelFlushProc.3
    cp CrtChannel.3 Tcl_ChannelHandlerProc.3
fi
if test -r CrtChnlHdlr.3; then
    rm -f Tcl_CreateChannelHandler.3
    rm -f Tcl_DeleteChannelHandler.3
    cp CrtChnlHdlr.3 Tcl_CreateChannelHandler.3
    cp CrtChnlHdlr.3 Tcl_DeleteChannelHandler.3
fi
if test -r CrtCloseHdlr.3; then
    rm -f Tcl_CreateCloseHandler.3
    rm -f Tcl_DeleteCloseHandler.3
    cp CrtCloseHdlr.3 Tcl_CreateCloseHandler.3
    cp CrtCloseHdlr.3 Tcl_DeleteCloseHandler.3
fi
if test -r CrtCommand.3; then
    rm -f Tcl_CreateCommand.3
    cp CrtCommand.3 Tcl_CreateCommand.3
fi
if test -r CrtFileHdlr.3; then
    rm -f Tcl_CreateFileHandler.3
    rm -f Tcl_DeleteFileHandler.3
    cp CrtFileHdlr.3 Tcl_CreateFileHandler.3
    cp CrtFileHdlr.3 Tcl_DeleteFileHandler.3
fi
if test -r CrtInterp.3; then
    rm -f Tcl_CreateInterp.3
    rm -f Tcl_DeleteInterp.3
    rm -f Tcl_InterpDeleted.3
    cp CrtInterp.3 Tcl_CreateInterp.3
    cp CrtInterp.3 Tcl_DeleteInterp.3
    cp CrtInterp.3 Tcl_InterpDeleted.3
fi
if test -r CrtMathFnc.3; then
    rm -f Tcl_CreateMathFunc.3
    cp CrtMathFnc.3 Tcl_CreateMathFunc.3
fi
if test -r CrtObjCmd.3; then
    rm -f Tcl_CreateObjCommand.3
    rm -f Tcl_DeleteCommand.3
    rm -f Tcl_DeleteCommandFromToken.3
    rm -f Tcl_GetCommandInfo.3
    rm -f Tcl_SetCommandInfo.3
    rm -f Tcl_GetCommandName.3
    cp CrtObjCmd.3 Tcl_CreateObjCommand.3
    cp CrtObjCmd.3 Tcl_DeleteCommand.3
    cp CrtObjCmd.3 Tcl_DeleteCommandFromToken.3
    cp CrtObjCmd.3 Tcl_GetCommandInfo.3
    cp CrtObjCmd.3 Tcl_SetCommandInfo.3
    cp CrtObjCmd.3 Tcl_GetCommandName.3
fi
if test -r CrtSlave.3; then
    rm -f Tcl_IsSafe.3
    rm -f Tcl_MakeSafe.3
    rm -f Tcl_CreateSlave.3
    rm -f Tcl_GetSlave.3
    rm -f Tcl_GetMaster.3
    rm -f Tcl_GetInterpPath.3
    rm -f Tcl_CreateAlias.3
    rm -f Tcl_CreateAliasObj.3
    rm -f Tcl_GetAlias.3
    rm -f Tcl_GetAliasObj.3
    rm -f Tcl_ExposeCommand.3
    rm -f Tcl_HideCommand.3
    cp CrtSlave.3 Tcl_IsSafe.3
    cp CrtSlave.3 Tcl_MakeSafe.3
    cp CrtSlave.3 Tcl_CreateSlave.3
    cp CrtSlave.3 Tcl_GetSlave.3
    cp CrtSlave.3 Tcl_GetMaster.3
    cp CrtSlave.3 Tcl_GetInterpPath.3
    cp CrtSlave.3 Tcl_CreateAlias.3
    cp CrtSlave.3 Tcl_CreateAliasObj.3
    cp CrtSlave.3 Tcl_GetAlias.3
    cp CrtSlave.3 Tcl_GetAliasObj.3
    cp CrtSlave.3 Tcl_ExposeCommand.3
    cp CrtSlave.3 Tcl_HideCommand.3
fi
if test -r CrtTimerHdlr.3; then
    rm -f Tcl_CreateTimerHandler.3
    rm -f Tcl_DeleteTimerHandler.3
    cp CrtTimerHdlr.3 Tcl_CreateTimerHandler.3
    cp CrtTimerHdlr.3 Tcl_DeleteTimerHandler.3
fi
if test -r CrtTrace.3; then
    rm -f Tcl_CreateTrace.3
    rm -f Tcl_DeleteTrace.3
    cp CrtTrace.3 Tcl_CreateTrace.3
    cp CrtTrace.3 Tcl_DeleteTrace.3
fi
if test -r DString.3; then
    rm -f Tcl_DStringInit.3
    rm -f Tcl_DStringAppend.3
    rm -f Tcl_DStringAppendElement.3
    rm -f Tcl_DStringStartSublist.3
    rm -f Tcl_DStringEndSublist.3
    rm -f Tcl_DStringLength.3
    rm -f Tcl_DStringValue.3
    rm -f Tcl_DStringSetLength.3
    rm -f Tcl_DStringFree.3
    rm -f Tcl_DStringResult.3
    rm -f Tcl_DStringGetResult.3
    cp DString.3 Tcl_DStringInit.3
    cp DString.3 Tcl_DStringAppend.3
    cp DString.3 Tcl_DStringAppendElement.3
    cp DString.3 Tcl_DStringStartSublist.3
    cp DString.3 Tcl_DStringEndSublist.3
    cp DString.3 Tcl_DStringLength.3
    cp DString.3 Tcl_DStringValue.3
    cp DString.3 Tcl_DStringSetLength.3
    cp DString.3 Tcl_DStringFree.3
    cp DString.3 Tcl_DStringResult.3
    cp DString.3 Tcl_DStringGetResult.3
fi
if test -r DetachPids.3; then
    rm -f Tcl_DetachPids.3
    rm -f Tcl_ReapDetachedProcs.3
    cp DetachPids.3 Tcl_DetachPids.3
    cp DetachPids.3 Tcl_ReapDetachedProcs.3
fi
if test -r DoOneEvent.3; then
    rm -f Tcl_DoOneEvent.3
    cp DoOneEvent.3 Tcl_DoOneEvent.3
fi
if test -r DoWhenIdle.3; then
    rm -f Tcl_DoWhenIdle.3
    rm -f Tcl_CancelIdleCall.3
    cp DoWhenIdle.3 Tcl_DoWhenIdle.3
    cp DoWhenIdle.3 Tcl_CancelIdleCall.3
fi
if test -r DoubleObj.3; then
    rm -f Tcl_NewDoubleObj.3
    rm -f Tcl_SetDoubleObj.3
    rm -f Tcl_GetDoubleFromObj.3
    cp DoubleObj.3 Tcl_NewDoubleObj.3
    cp DoubleObj.3 Tcl_SetDoubleObj.3
    cp DoubleObj.3 Tcl_GetDoubleFromObj.3
fi
if test -r DumpActiveMemory.3; then
    rm -f Tcl_DumpActiveMemory.3
    rm -f Tcl_InitMemory.3
    rm -f Tcl_ValidateAllMemory.3
    cp DumpActiveMemory.3 Tcl_DumpActiveMemory.3
    cp DumpActiveMemory.3 Tcl_InitMemory.3
    cp DumpActiveMemory.3 Tcl_ValidateAllMemory.3
fi
if test -r Encoding.3; then
    rm -f Tcl_GetEncoding.3
    rm -f Tcl_FreeEncoding.3
    rm -f Tcl_ExternalToUtfDString.3
    rm -f Tcl_ExternalToUtf.3
    rm -f Tcl_UtfToExternalDString.3
    rm -f Tcl_UtfToExternal.3
    rm -f Tcl_WinTCharToUtf.3
    rm -f Tcl_WinUtfToTChar.3
    rm -f Tcl_GetEncodingName.3
    rm -f Tcl_SetSystemEncoding.3
    rm -f Tcl_GetEncodingNames.3
    rm -f Tcl_CreateEncoding.3
    rm -f Tcl_GetDefaultEncodingDir.3
    rm -f Tcl_SetDefaultEncodingDir.3
    cp Encoding.3 Tcl_GetEncoding.3
    cp Encoding.3 Tcl_FreeEncoding.3
    cp Encoding.3 Tcl_ExternalToUtfDString.3
    cp Encoding.3 Tcl_ExternalToUtf.3
    cp Encoding.3 Tcl_UtfToExternalDString.3
    cp Encoding.3 Tcl_UtfToExternal.3
    cp Encoding.3 Tcl_WinTCharToUtf.3
    cp Encoding.3 Tcl_WinUtfToTChar.3
    cp Encoding.3 Tcl_GetEncodingName.3
    cp Encoding.3 Tcl_SetSystemEncoding.3
    cp Encoding.3 Tcl_GetEncodingNames.3
    cp Encoding.3 Tcl_CreateEncoding.3
    cp Encoding.3 Tcl_GetDefaultEncodingDir.3
    cp Encoding.3 Tcl_SetDefaultEncodingDir.3
fi
if test -r Eval.3; then
    rm -f Tcl_EvalObjEx.3
    rm -f Tcl_EvalFile.3
    rm -f Tcl_EvalObjv.3
    rm -f Tcl_Eval.3
    rm -f Tcl_EvalEx.3
    rm -f Tcl_GlobalEval.3
    rm -f Tcl_GlobalEvalObj.3
    rm -f Tcl_VarEval.3
    rm -f Tcl_VarEvalVA.3
    cp Eval.3 Tcl_EvalObjEx.3
    cp Eval.3 Tcl_EvalFile.3
    cp Eval.3 Tcl_EvalObjv.3
    cp Eval.3 Tcl_Eval.3
    cp Eval.3 Tcl_EvalEx.3
    cp Eval.3 Tcl_GlobalEval.3
    cp Eval.3 Tcl_GlobalEvalObj.3
    cp Eval.3 Tcl_VarEval.3
    cp Eval.3 Tcl_VarEvalVA.3
fi
if test -r Exit.3; then
    rm -f Tcl_Exit.3
    rm -f Tcl_Finalize.3
    rm -f Tcl_CreateExitHandler.3
    rm -f Tcl_DeleteExitHandler.3
    rm -f Tcl_ExitThread.3
    rm -f Tcl_FinalizeThread.3
    rm -f Tcl_CreateThreadExitHandler.3
    rm -f Tcl_DeleteThreadExitHandler.3
    cp Exit.3 Tcl_Exit.3
    cp Exit.3 Tcl_Finalize.3
    cp Exit.3 Tcl_CreateExitHandler.3
    cp Exit.3 Tcl_DeleteExitHandler.3
    cp Exit.3 Tcl_ExitThread.3
    cp Exit.3 Tcl_FinalizeThread.3
    cp Exit.3 Tcl_CreateThreadExitHandler.3
    cp Exit.3 Tcl_DeleteThreadExitHandler.3
fi
if test -r ExprLong.3; then
    rm -f Tcl_ExprLong.3
    rm -f Tcl_ExprDouble.3
    rm -f Tcl_ExprBoolean.3
    rm -f Tcl_ExprString.3
    cp ExprLong.3 Tcl_ExprLong.3
    cp ExprLong.3 Tcl_ExprDouble.3
    cp ExprLong.3 Tcl_ExprBoolean.3
    cp ExprLong.3 Tcl_ExprString.3
fi
if test -r ExprLongObj.3; then
    rm -f Tcl_ExprLongObj.3
    rm -f Tcl_ExprDoubleObj.3
    rm -f Tcl_ExprBooleanObj.3
    rm -f Tcl_ExprObj.3
    cp ExprLongObj.3 Tcl_ExprLongObj.3
    cp ExprLongObj.3 Tcl_ExprDoubleObj.3
    cp ExprLongObj.3 Tcl_ExprBooleanObj.3
    cp ExprLongObj.3 Tcl_ExprObj.3
fi
if test -r FindExec.3; then
    rm -f Tcl_FindExecutable.3
    rm -f Tcl_GetNameOfExecutable.3
    cp FindExec.3 Tcl_FindExecutable.3
    cp FindExec.3 Tcl_GetNameOfExecutable.3
fi
if test -r GetCwd.3; then
    rm -f Tcl_GetCwd.3
    rm -f Tcl_Chdir.3
    cp GetCwd.3 Tcl_GetCwd.3
    cp GetCwd.3 Tcl_Chdir.3
fi
if test -r GetHostName.3; then
    rm -f Tcl_GetHostName.3
    cp GetHostName.3 Tcl_GetHostName.3
fi
if test -r GetIndex.3; then
    rm -f Tcl_GetIndexFromObj.3
    rm -f Tcl_GetIndexFromObjStruct.3
    cp GetIndex.3 Tcl_GetIndexFromObj.3
    cp GetIndex.3 Tcl_GetIndexFromObjStruct.3
fi
if test -r GetInt.3; then
    rm -f Tcl_GetInt.3
    rm -f Tcl_GetDouble.3
    rm -f Tcl_GetBoolean.3
    cp GetInt.3 Tcl_GetInt.3
    cp GetInt.3 Tcl_GetDouble.3
    cp GetInt.3 Tcl_GetBoolean.3
fi
if test -r GetOpnFl.3; then
    rm -f Tcl_GetOpenFile.3
    cp GetOpnFl.3 Tcl_GetOpenFile.3
fi
if test -r GetStdChan.3; then
    rm -f Tcl_GetStdChannel.3
    rm -f Tcl_SetStdChannel.3
    cp GetStdChan.3 Tcl_GetStdChannel.3
    cp GetStdChan.3 Tcl_SetStdChannel.3
fi
if test -r GetVersion.3; then
    rm -f Tcl_GetVersion.3
    cp GetVersion.3 Tcl_GetVersion.3
fi
if test -r Hash.3; then
    rm -f Tcl_InitHashTable.3
    rm -f Tcl_DeleteHashTable.3
    rm -f Tcl_CreateHashEntry.3
    rm -f Tcl_DeleteHashEntry.3
    rm -f Tcl_FindHashEntry.3
    rm -f Tcl_GetHashValue.3
    rm -f Tcl_SetHashValue.3
    rm -f Tcl_GetHashKey.3
    rm -f Tcl_FirstHashEntry.3
    rm -f Tcl_NextHashEntry.3
    rm -f Tcl_HashStats.3
    cp Hash.3 Tcl_InitHashTable.3
    cp Hash.3 Tcl_DeleteHashTable.3
    cp Hash.3 Tcl_CreateHashEntry.3
    cp Hash.3 Tcl_DeleteHashEntry.3
    cp Hash.3 Tcl_FindHashEntry.3
    cp Hash.3 Tcl_GetHashValue.3
    cp Hash.3 Tcl_SetHashValue.3
    cp Hash.3 Tcl_GetHashKey.3
    cp Hash.3 Tcl_FirstHashEntry.3
    cp Hash.3 Tcl_NextHashEntry.3
    cp Hash.3 Tcl_HashStats.3
fi
if test -r Init.3; then
    rm -f Tcl_Init.3
    cp Init.3 Tcl_Init.3
fi
if test -r InitStubs.3; then
    rm -f Tcl_InitStubs.3
    cp InitStubs.3 Tcl_InitStubs.3
fi
if test -r IntObj.3; then
    rm -f Tcl_NewIntObj.3
    rm -f Tcl_NewLongObj.3
    rm -f Tcl_SetIntObj.3
    rm -f Tcl_SetLongObj.3
    rm -f Tcl_GetIntFromObj.3
    rm -f Tcl_GetLongFromObj.3
    cp IntObj.3 Tcl_NewIntObj.3
    cp IntObj.3 Tcl_NewLongObj.3
    cp IntObj.3 Tcl_SetIntObj.3
    cp IntObj.3 Tcl_SetLongObj.3
    cp IntObj.3 Tcl_GetIntFromObj.3
    cp IntObj.3 Tcl_GetLongFromObj.3
fi
if test -r Interp.3; then
    rm -f Tcl_Interp.3
    cp Interp.3 Tcl_Interp.3
fi
if test -r LinkVar.3; then
    rm -f Tcl_LinkVar.3
    rm -f Tcl_UnlinkVar.3
    rm -f Tcl_UpdateLinkedVar.3
    cp LinkVar.3 Tcl_LinkVar.3
    cp LinkVar.3 Tcl_UnlinkVar.3
    cp LinkVar.3 Tcl_UpdateLinkedVar.3
fi
if test -r ListObj.3; then
    rm -f Tcl_ListObjAppendList.3
    rm -f Tcl_ListObjAppendElement.3
    rm -f Tcl_NewListObj.3
    rm -f Tcl_SetListObj.3
    rm -f Tcl_ListObjGetElements.3
    rm -f Tcl_ListObjLength.3
    rm -f Tcl_ListObjIndex.3
    rm -f Tcl_ListObjReplace.3
    cp ListObj.3 Tcl_ListObjAppendList.3
    cp ListObj.3 Tcl_ListObjAppendElement.3
    cp ListObj.3 Tcl_NewListObj.3
    cp ListObj.3 Tcl_SetListObj.3
    cp ListObj.3 Tcl_ListObjGetElements.3
    cp ListObj.3 Tcl_ListObjLength.3
    cp ListObj.3 Tcl_ListObjIndex.3
    cp ListObj.3 Tcl_ListObjReplace.3
fi
if test -r Notifier.3; then
    rm -f Tcl_CreateEventSource.3
    rm -f Tcl_DeleteEventSource.3
    rm -f Tcl_SetMaxBlockTime.3
    rm -f Tcl_QueueEvent.3
    rm -f Tcl_ThreadQueueEvent.3
    rm -f Tcl_ThreadAlert.3
    rm -f Tcl_GetCurrentThread.3
    rm -f Tcl_DeleteEvents.3
    rm -f Tcl_InitNotifier.3
    rm -f Tcl_FinalizeNotifier.3
    rm -f Tcl_WaitForEvent.3
    rm -f Tcl_AlertNotifier.3
    rm -f Tcl_SetTimer.3
    rm -f Tcl_ServiceAll.3
    rm -f Tcl_ServiceEvent.3
    rm -f Tcl_GetServiceMode.3
    rm -f Tcl_SetServiceMode.3
    cp Notifier.3 Tcl_CreateEventSource.3
    cp Notifier.3 Tcl_DeleteEventSource.3
    cp Notifier.3 Tcl_SetMaxBlockTime.3
    cp Notifier.3 Tcl_QueueEvent.3
    cp Notifier.3 Tcl_ThreadQueueEvent.3
    cp Notifier.3 Tcl_ThreadAlert.3
    cp Notifier.3 Tcl_GetCurrentThread.3
    cp Notifier.3 Tcl_DeleteEvents.3
    cp Notifier.3 Tcl_InitNotifier.3
    cp Notifier.3 Tcl_FinalizeNotifier.3
    cp Notifier.3 Tcl_WaitForEvent.3
    cp Notifier.3 Tcl_AlertNotifier.3
    cp Notifier.3 Tcl_SetTimer.3
    cp Notifier.3 Tcl_ServiceAll.3
    cp Notifier.3 Tcl_ServiceEvent.3
    cp Notifier.3 Tcl_GetServiceMode.3
    cp Notifier.3 Tcl_SetServiceMode.3
fi
if test -r Object.3; then
    rm -f Tcl_NewObj.3
    rm -f Tcl_DuplicateObj.3
    rm -f Tcl_IncrRefCount.3
    rm -f Tcl_DecrRefCount.3
    rm -f Tcl_IsShared.3
    rm -f Tcl_InvalidateStringRep.3
    cp Object.3 Tcl_NewObj.3
    cp Object.3 Tcl_DuplicateObj.3
    cp Object.3 Tcl_IncrRefCount.3
    cp Object.3 Tcl_DecrRefCount.3
    cp Object.3 Tcl_IsShared.3
    cp Object.3 Tcl_InvalidateStringRep.3
fi
if test -r ObjectType.3; then
    rm -f Tcl_RegisterObjType.3
    rm -f Tcl_GetObjType.3
    rm -f Tcl_AppendAllObjTypes.3
    rm -f Tcl_ConvertToType.3
    cp ObjectType.3 Tcl_RegisterObjType.3
    cp ObjectType.3 Tcl_GetObjType.3
    cp ObjectType.3 Tcl_AppendAllObjTypes.3
    cp ObjectType.3 Tcl_ConvertToType.3
fi
if test -r OpenFileChnl.3; then
    rm -f Tcl_OpenFileChannel.3
    rm -f Tcl_OpenCommandChannel.3
    rm -f Tcl_MakeFileChannel.3
    rm -f Tcl_GetChannel.3
    rm -f Tcl_GetChannelNames.3
    rm -f Tcl_GetChannelNamesEx.3
    rm -f Tcl_RegisterChannel.3
    rm -f Tcl_UnregisterChannel.3
    rm -f Tcl_Close.3
    rm -f Tcl_ReadChars.3
    rm -f Tcl_Read.3
    rm -f Tcl_GetsObj.3
    rm -f Tcl_Gets.3
    rm -f Tcl_WriteObj.3
    rm -f Tcl_WriteChars.3
    rm -f Tcl_Write.3
    rm -f Tcl_Flush.3
    rm -f Tcl_Seek.3
    rm -f Tcl_Tell.3
    rm -f Tcl_GetChannelOption.3
    rm -f Tcl_SetChannelOption.3
    rm -f Tcl_Eof.3
    rm -f Tcl_InputBlocked.3
    rm -f Tcl_InputBuffered.3
    rm -f Tcl_Ungets.3
    cp OpenFileChnl.3 Tcl_OpenFileChannel.3
    cp OpenFileChnl.3 Tcl_OpenCommandChannel.3
    cp OpenFileChnl.3 Tcl_MakeFileChannel.3
    cp OpenFileChnl.3 Tcl_GetChannel.3
    cp OpenFileChnl.3 Tcl_GetChannelNames.3
    cp OpenFileChnl.3 Tcl_GetChannelNamesEx.3
    cp OpenFileChnl.3 Tcl_RegisterChannel.3
    cp OpenFileChnl.3 Tcl_UnregisterChannel.3
    cp OpenFileChnl.3 Tcl_Close.3
    cp OpenFileChnl.3 Tcl_ReadChars.3
    cp OpenFileChnl.3 Tcl_Read.3
    cp OpenFileChnl.3 Tcl_GetsObj.3
    cp OpenFileChnl.3 Tcl_Gets.3
    cp OpenFileChnl.3 Tcl_WriteObj.3
    cp OpenFileChnl.3 Tcl_WriteChars.3
    cp OpenFileChnl.3 Tcl_Write.3
    cp OpenFileChnl.3 Tcl_Flush.3
    cp OpenFileChnl.3 Tcl_Seek.3
    cp OpenFileChnl.3 Tcl_Tell.3
    cp OpenFileChnl.3 Tcl_GetChannelOption.3
    cp OpenFileChnl.3 Tcl_SetChannelOption.3
    cp OpenFileChnl.3 Tcl_Eof.3
    cp OpenFileChnl.3 Tcl_InputBlocked.3
    cp OpenFileChnl.3 Tcl_InputBuffered.3
    cp OpenFileChnl.3 Tcl_Ungets.3
fi
if test -r OpenTcp.3; then
    rm -f Tcl_OpenTcpClient.3
    rm -f Tcl_MakeTcpClientChannel.3
    rm -f Tcl_OpenTcpServer.3
    cp OpenTcp.3 Tcl_OpenTcpClient.3
    cp OpenTcp.3 Tcl_MakeTcpClientChannel.3
    cp OpenTcp.3 Tcl_OpenTcpServer.3
fi
if test -r ParseCmd.3; then
    rm -f Tcl_ParseCommand.3
    rm -f Tcl_ParseExpr.3
    rm -f Tcl_ParseBraces.3
    rm -f Tcl_ParseQuotedString.3
    rm -f Tcl_ParseVarName.3
    rm -f Tcl_ParseVar.3
    rm -f Tcl_FreeParse.3
    rm -f Tcl_EvalTokens.3
    cp ParseCmd.3 Tcl_ParseCommand.3
    cp ParseCmd.3 Tcl_ParseExpr.3
    cp ParseCmd.3 Tcl_ParseBraces.3
    cp ParseCmd.3 Tcl_ParseQuotedString.3
    cp ParseCmd.3 Tcl_ParseVarName.3
    cp ParseCmd.3 Tcl_ParseVar.3
    cp ParseCmd.3 Tcl_FreeParse.3
    cp ParseCmd.3 Tcl_EvalTokens.3
fi
if test -r PkgRequire.3; then
    rm -f Tcl_PkgRequire.3
    rm -f Tcl_PkgRequireEx.3
    rm -f Tcl_PkgPresent.3
    rm -f Tcl_PkgPresentEx.3
    rm -f Tcl_PkgProvide.3
    rm -f Tcl_PkgProvideEx.3
    cp PkgRequire.3 Tcl_PkgRequire.3
    cp PkgRequire.3 Tcl_PkgRequireEx.3
    cp PkgRequire.3 Tcl_PkgPresent.3
    cp PkgRequire.3 Tcl_PkgPresentEx.3
    cp PkgRequire.3 Tcl_PkgProvide.3
    cp PkgRequire.3 Tcl_PkgProvideEx.3
fi
if test -r Preserve.3; then
    rm -f Tcl_Preserve.3
    rm -f Tcl_Release.3
    rm -f Tcl_EventuallyFree.3
    cp Preserve.3 Tcl_Preserve.3
    cp Preserve.3 Tcl_Release.3
    cp Preserve.3 Tcl_EventuallyFree.3
fi
if test -r PrintDbl.3; then
    rm -f Tcl_PrintDouble.3
    cp PrintDbl.3 Tcl_PrintDouble.3
fi
if test -r RecEvalObj.3; then
    rm -f Tcl_RecordAndEvalObj.3
    cp RecEvalObj.3 Tcl_RecordAndEvalObj.3
fi
if test -r RecordEval.3; then
    rm -f Tcl_RecordAndEval.3
    cp RecordEval.3 Tcl_RecordAndEval.3
fi
if test -r RegExp.3; then
    rm -f Tcl_RegExpMatch.3
    rm -f Tcl_RegExpCompile.3
    rm -f Tcl_RegExpExec.3
    rm -f Tcl_RegExpRange.3
    rm -f Tcl_GetRegExpFromObj.3
    rm -f Tcl_RegExpMatchObj.3
    rm -f Tcl_RegExpExecObj.3
    rm -f Tcl_RegExpGetInfo.3
    cp RegExp.3 Tcl_RegExpMatch.3
    cp RegExp.3 Tcl_RegExpCompile.3
    cp RegExp.3 Tcl_RegExpExec.3
    cp RegExp.3 Tcl_RegExpRange.3
    cp RegExp.3 Tcl_GetRegExpFromObj.3
    cp RegExp.3 Tcl_RegExpMatchObj.3
    cp RegExp.3 Tcl_RegExpExecObj.3
    cp RegExp.3 Tcl_RegExpGetInfo.3
fi
if test -r SaveResult.3; then
    rm -f Tcl_SaveResult.3
    rm -f Tcl_RestoreResult.3
    rm -f Tcl_DiscardResult.3
    cp SaveResult.3 Tcl_SaveResult.3
    cp SaveResult.3 Tcl_RestoreResult.3
    cp SaveResult.3 Tcl_DiscardResult.3
fi
if test -r SetErrno.3; then
    rm -f Tcl_SetErrno.3
    rm -f Tcl_GetErrno.3
    rm -f Tcl_ErrnoId.3
    rm -f Tcl_ErrnoMsg.3
    cp SetErrno.3 Tcl_SetErrno.3
    cp SetErrno.3 Tcl_GetErrno.3
    cp SetErrno.3 Tcl_ErrnoId.3
    cp SetErrno.3 Tcl_ErrnoMsg.3
fi
if test -r SetRecLmt.3; then
    rm -f Tcl_SetRecursionLimit.3
    cp SetRecLmt.3 Tcl_SetRecursionLimit.3
fi
if test -r SetResult.3; then
    rm -f Tcl_SetObjResult.3
    rm -f Tcl_GetObjResult.3
    rm -f Tcl_SetResult.3
    rm -f Tcl_GetStringResult.3
    rm -f Tcl_AppendResult.3
    rm -f Tcl_AppendResultVA.3
    rm -f Tcl_AppendElement.3
    rm -f Tcl_ResetResult.3
    rm -f Tcl_FreeResult.3
    cp SetResult.3 Tcl_SetObjResult.3
    cp SetResult.3 Tcl_GetObjResult.3
    cp SetResult.3 Tcl_SetResult.3
    cp SetResult.3 Tcl_GetStringResult.3
    cp SetResult.3 Tcl_AppendResult.3
    cp SetResult.3 Tcl_AppendResultVA.3
    cp SetResult.3 Tcl_AppendElement.3
    cp SetResult.3 Tcl_ResetResult.3
    cp SetResult.3 Tcl_FreeResult.3
fi
if test -r SetVar.3; then
    rm -f Tcl_SetVar2Ex.3
    rm -f Tcl_SetVar.3
    rm -f Tcl_SetVar2.3
    rm -f Tcl_ObjSetVar2.3
    rm -f Tcl_GetVar2Ex.3
    rm -f Tcl_GetVar.3
    rm -f Tcl_GetVar2.3
    rm -f Tcl_ObjGetVar2.3
    rm -f Tcl_UnsetVar.3
    rm -f Tcl_UnsetVar2.3
    cp SetVar.3 Tcl_SetVar2Ex.3
    cp SetVar.3 Tcl_SetVar.3
    cp SetVar.3 Tcl_SetVar2.3
    cp SetVar.3 Tcl_ObjSetVar2.3
    cp SetVar.3 Tcl_GetVar2Ex.3
    cp SetVar.3 Tcl_GetVar.3
    cp SetVar.3 Tcl_GetVar2.3
    cp SetVar.3 Tcl_ObjGetVar2.3
    cp SetVar.3 Tcl_UnsetVar.3
    cp SetVar.3 Tcl_UnsetVar2.3
fi
if test -r Sleep.3; then
    rm -f Tcl_Sleep.3
    cp Sleep.3 Tcl_Sleep.3
fi
if test -r SourceRCFile.3; then
    rm -f Tcl_SourceRCFile.3
    cp SourceRCFile.3 Tcl_SourceRCFile.3
fi
if test -r SplitList.3; then
    rm -f Tcl_SplitList.3
    rm -f Tcl_Merge.3
    rm -f Tcl_ScanElement.3
    rm -f Tcl_ConvertElement.3
    rm -f Tcl_ScanCountedElement.3
    rm -f Tcl_ConvertCountedElement.3
    cp SplitList.3 Tcl_SplitList.3
    cp SplitList.3 Tcl_Merge.3
    cp SplitList.3 Tcl_ScanElement.3
    cp SplitList.3 Tcl_ConvertElement.3
    cp SplitList.3 Tcl_ScanCountedElement.3
    cp SplitList.3 Tcl_ConvertCountedElement.3
fi
if test -r SplitPath.3; then
    rm -f Tcl_SplitPath.3
    rm -f Tcl_JoinPath.3
    rm -f Tcl_GetPathType.3
    cp SplitPath.3 Tcl_SplitPath.3
    cp SplitPath.3 Tcl_JoinPath.3
    cp SplitPath.3 Tcl_GetPathType.3
fi
if test -r StaticPkg.3; then
    rm -f Tcl_StaticPackage.3
    cp StaticPkg.3 Tcl_StaticPackage.3
fi
if test -r StrMatch.3; then
    rm -f Tcl_StringMatch.3
    rm -f Tcl_StringCaseMatch.3
    cp StrMatch.3 Tcl_StringMatch.3
    cp StrMatch.3 Tcl_StringCaseMatch.3
fi
if test -r StringObj.3; then
    rm -f Tcl_NewStringObj.3
    rm -f Tcl_NewUnicodeObj.3
    rm -f Tcl_SetStringObj.3
    rm -f Tcl_SetUnicodeObj.3
    rm -f Tcl_GetStringFromObj.3
    rm -f Tcl_GetString.3
    rm -f Tcl_GetUnicode.3
    rm -f Tcl_GetUniChar.3
    rm -f Tcl_GetCharLength.3
    rm -f Tcl_GetRange.3
    rm -f Tcl_AppendToObj.3
    rm -f Tcl_AppendUnicodeToObj.3
    rm -f Tcl_AppendStringsToObj.3
    rm -f Tcl_AppendStringsToObjVA.3
    rm -f Tcl_AppendObjToObj.3
    rm -f Tcl_SetObjLength.3
    rm -f Tcl_ConcatObj.3
    cp StringObj.3 Tcl_NewStringObj.3
    cp StringObj.3 Tcl_NewUnicodeObj.3
    cp StringObj.3 Tcl_SetStringObj.3
    cp StringObj.3 Tcl_SetUnicodeObj.3
    cp StringObj.3 Tcl_GetStringFromObj.3
    cp StringObj.3 Tcl_GetString.3
    cp StringObj.3 Tcl_GetUnicode.3
    cp StringObj.3 Tcl_GetUniChar.3
    cp StringObj.3 Tcl_GetCharLength.3
    cp StringObj.3 Tcl_GetRange.3
    cp StringObj.3 Tcl_AppendToObj.3
    cp StringObj.3 Tcl_AppendUnicodeToObj.3
    cp StringObj.3 Tcl_AppendStringsToObj.3
    cp StringObj.3 Tcl_AppendStringsToObjVA.3
    cp StringObj.3 Tcl_AppendObjToObj.3
    cp StringObj.3 Tcl_SetObjLength.3
    cp StringObj.3 Tcl_ConcatObj.3
fi
if test -r Thread.3; then
    rm -f Tcl_ConditionNotify.3
    rm -f Tcl_ConditionWait.3
    rm -f Tcl_ConditionFinalize.3
    rm -f Tcl_GetThreadData.3
    rm -f Tcl_MutexLock.3
    rm -f Tcl_MutexUnlock.3
    rm -f Tcl_MutexFinalize.3
    rm -f Tcl_CreateThread.3
    cp Thread.3 Tcl_ConditionNotify.3
    cp Thread.3 Tcl_ConditionWait.3
    cp Thread.3 Tcl_ConditionFinalize.3
    cp Thread.3 Tcl_GetThreadData.3
    cp Thread.3 Tcl_MutexLock.3
    cp Thread.3 Tcl_MutexUnlock.3
    cp Thread.3 Tcl_MutexFinalize.3
    cp Thread.3 Tcl_CreateThread.3
fi
if test -r ToUpper.3; then
    rm -f Tcl_UniCharToUpper.3
    rm -f Tcl_UniCharToLower.3
    rm -f Tcl_UniCharToTitle.3
    rm -f Tcl_UtfToUpper.3
    rm -f Tcl_UtfToLower.3
    rm -f Tcl_UtfToTitle.3
    cp ToUpper.3 Tcl_UniCharToUpper.3
    cp ToUpper.3 Tcl_UniCharToLower.3
    cp ToUpper.3 Tcl_UniCharToTitle.3
    cp ToUpper.3 Tcl_UtfToUpper.3
    cp ToUpper.3 Tcl_UtfToLower.3
    cp ToUpper.3 Tcl_UtfToTitle.3
fi
if test -r TraceVar.3; then
    rm -f Tcl_TraceVar.3
    rm -f Tcl_TraceVar2.3
    rm -f Tcl_UntraceVar.3
    rm -f Tcl_UntraceVar2.3
    rm -f Tcl_VarTraceInfo.3
    rm -f Tcl_VarTraceInfo2.3
    cp TraceVar.3 Tcl_TraceVar.3
    cp TraceVar.3 Tcl_TraceVar2.3
    cp TraceVar.3 Tcl_UntraceVar.3
    cp TraceVar.3 Tcl_UntraceVar2.3
    cp TraceVar.3 Tcl_VarTraceInfo.3
    cp TraceVar.3 Tcl_VarTraceInfo2.3
fi
if test -r Translate.3; then
    rm -f Tcl_TranslateFileName.3
    cp Translate.3 Tcl_TranslateFileName.3
fi
if test -r UpVar.3; then
    rm -f Tcl_UpVar.3
    rm -f Tcl_UpVar2.3
    cp UpVar.3 Tcl_UpVar.3
    cp UpVar.3 Tcl_UpVar2.3
fi
if test -r Utf.3; then
    rm -f Tcl_UniChar.3
    rm -f Tcl_UniCharToUtf.3
    rm -f Tcl_UtfToUniChar.3
    rm -f Tcl_UniCharToUtfDString.3
    rm -f Tcl_UtfToUniCharDString.3
    rm -f Tcl_UniCharLen.3
    rm -f Tcl_UniCharNcmp.3
    rm -f Tcl_UtfCharComplete.3
    rm -f Tcl_NumUtfChars.3
    rm -f Tcl_UtfFindFirst.3
    rm -f Tcl_UtfFindLast.3
    rm -f Tcl_UtfNext.3
    rm -f Tcl_UtfPrev.3
    rm -f Tcl_UniCharAtIndex.3
    rm -f Tcl_UtfAtIndex.3
    rm -f Tcl_UtfBackslash.3
    cp Utf.3 Tcl_UniChar.3
    cp Utf.3 Tcl_UniCharToUtf.3
    cp Utf.3 Tcl_UtfToUniChar.3
    cp Utf.3 Tcl_UniCharToUtfDString.3
    cp Utf.3 Tcl_UtfToUniCharDString.3
    cp Utf.3 Tcl_UniCharLen.3
    cp Utf.3 Tcl_UniCharNcmp.3
    cp Utf.3 Tcl_UtfCharComplete.3
    cp Utf.3 Tcl_NumUtfChars.3
    cp Utf.3 Tcl_UtfFindFirst.3
    cp Utf.3 Tcl_UtfFindLast.3
    cp Utf.3 Tcl_UtfNext.3
    cp Utf.3 Tcl_UtfPrev.3
    cp Utf.3 Tcl_UniCharAtIndex.3
    cp Utf.3 Tcl_UtfAtIndex.3
    cp Utf.3 Tcl_UtfBackslash.3
fi
if test -r WrongNumArgs.3; then
    rm -f Tcl_WrongNumArgs.3
    cp WrongNumArgs.3 Tcl_WrongNumArgs.3
fi
if test -r http.n; then
    rm -f Http.n
    cp http.n Http.n
fi
if test -r library.n; then
    rm -f auto_execok.n
    rm -f auto_import.n
    rm -f auto_load.n
    rm -f auto_mkindex.n
    rm -f auto_mkindex_old.n
    rm -f auto_qualify.n
    rm -f auto_reset.n
    rm -f tcl_findLibrary.n
    rm -f parray.n
    rm -f tcl_endOfWord.n
    rm -f tcl_startOfNextWord.n
    rm -f tcl_startOfPreviousWord.n
    rm -f tcl_wordBreakAfter.n
    rm -f tcl_wordBreakBefore.n
    cp library.n auto_execok.n
    cp library.n auto_import.n
    cp library.n auto_load.n
    cp library.n auto_mkindex.n
    cp library.n auto_mkindex_old.n
    cp library.n auto_qualify.n
    cp library.n auto_reset.n
    cp library.n tcl_findLibrary.n
    cp library.n parray.n
    cp library.n tcl_endOfWord.n
    cp library.n tcl_startOfNextWord.n
    cp library.n tcl_startOfPreviousWord.n
    cp library.n tcl_wordBreakAfter.n
    cp library.n tcl_wordBreakBefore.n
fi
if test -r packagens.n; then
    rm -f pkg::create.n
    cp packagens.n pkg::create.n
fi
if test -r pkgMkIndex.n; then
    rm -f pkg_mkIndex.n
    cp pkgMkIndex.n pkg_mkIndex.n
fi
if test -r safe.n; then
    rm -f SafeBase.n
    cp safe.n SafeBase.n
fi
if test -r tcltest.n; then
    rm -f Tcltest.n
    cp tcltest.n Tcltest.n
fi
exit 0
